package com.amkor.web.common.dao;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.GenericXmlApplicationContext;

public class BeanManager {
	private static final String APP_CTX_PROD = "/com/amkor/web/common/resource/WebAppCtx_PROD.xml";
	private static ApplicationContext ctx;
	
	public synchronized static ApplicationContext getAppCtx(){
		if(ctx == null){
			try{
				ctx = new GenericXmlApplicationContext(APP_CTX_PROD);
			}catch(Exception e){
				e.printStackTrace();
			}
		}				
		return ctx;
	}
	
}
